#ifndef SYSTEM_MACROS
#define SYSTEM_MACROS

// contains some macros to make low level coding easier, i.e. pointer manipulation

#include <windows.h>
#include <sstream>

#define MakePtr(cast, ptr, addValue ) (cast)( (DWORD_PTR)(ptr) + (DWORD_PTR)(addValue) )

template<class TO, class FROM> 
TO lexical_cast(FROM blah) 
{ 
	TO t; 
	std::stringstream ss; 
	ss<<blah; 
	ss>>t; 
	return t; 
} 


#endif